//So, a simple stdio64.h for linux and windows:

#ifndef _STDIO64_H_
#define  _STDIO64_H_

#if __linux__
#define _FILE_OFFSET_BITS 64

#elif _WIN32
#define fseeko _fseeki64
#define ftello _ftelli64
//typedef __int64 off_t;

#else // other
#define fseeko fseek
#define ftello ftell
typedef long off_t;
#endif

#include <cstdio>

#endif